;
var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");
function genProductInfo() {
    plan = {
        "planA": {
            "name": "私家车驾驶员意外险",
            "company": "众安保险",
            "year": "18-70",
            "days": "1m",
            "people_count": "1",
            "accident_death": "100000",
            "price": "1.00"

        },
        "planB":{
            "name": "私家车驾驶员意外险",
            "company": "众安保险",
            "year": "18-70",
            "days": "1y",
            "people_count": "1",
            "accident_death": "500000",
            "price": "66.00"

        }

    }
    for( k in plan ){
        data = plan[k];
        console.log( data );
        mysql.insertData( data )
        
    }
    mysql.close();
    
    

}
